<?php
namespace Admin\Api;

use Admin\Common\Controller;
use Portal\Domain\Admin as AdminDomain;
use Admin\Domain\Rights as RightsDomain;

/**
 * 权限组件
 * @author dogstar 20210121 
 */
class Rights extends Controller {

    /**
     * 刷新权限策略
     * @desc 刷新权限策略
     */
    public function refreshPolicyCsv() {
        $domain = new RightsDomain();
        $domain->refreshPolicyCsv();

        return array('is_refresh' => 1);
    }
}

